<div id="show_course_pannel">
  <div class="top">
    <span class="thumbnail"> <%=image_tag "course_image.gif"%> </span>
    <span class="study_button">
      <a href="#">开始学习</a>
    </span>
    <div class="info">
      <h6 class="link_brown"><%= link_to @course.title,course_path(@course) %></h6>
      <div class="course_info">
        <span class="total_count"><%= @course.items_count%></span>个单词 |
        <span class="completed_count">0</span>个已学完 |
        <span class="people_count">0</span>人在学
        <p>
          <span class="favorate"> <a href="#" title="收藏课程"></a></span>
          <span class="add_article"><a href="#" title="添加文章"></a></span>
          <span class="add_video"><a href="#" title="添加视频"></a></span>
        </p>
      </div>
    </div>
  </div>
  <div id="left_side">
    <div class="bar">
      <div class="author">
        <h6>创建者</h6>
        <%= user_image_tag(current_user,"small") %>
        <span><%= current_user.nickname %></span>
      </div>
    </div>
    <div class="bar">
      <div class="description">
        <h6>课程的描述</h6>
        <p><%= @course.description %></p>
      </div>
    </div>
  </div>
  <div id="right_side">
    <div class="sub_pannel">
      <div class="content">
        <span class="add_button"><%=link_to '添加单词', new_item_path(:course_id=>params[:id])%></span>
        <div class="title">
          <span class="text">
            课程单词
          </span>
        </div>
        <%unless @items.empty?%>
          <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
            <tr>
              <td width="5%" height="30">声音</td>
              <td width="45%">单词</td>
              <td width="25%">翻译</td>
              <td width="10%">词性</td>
              <td width="10%">进度</td>
              <td width="5%">修改</td>
            </tr>
            <%= render :partial=>"item"  ,:collection=>@items %>
          </table>
          <%= will_paginate @items  ,:prev_label => '上一页', :next_label => '下一页' %>
        <%else%>
          <div id="no_content">你还没有添加任何单词 ， 点击右侧链接添加单词.</div>
        <%end%>
      </div>
    </div>
  </div>
</div>